﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ShowSP.ascx.cs" Inherits="DoAnLTUD.WebUserControl.ShowSP" %>

    <h3 class="sp-title">sản phầm mới</h3>
    <asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1" RepeatColumns="3">
        <ItemTemplate>
            <div class="wrapper-sp">
                <div class="bgimages">
                    <a class="img-thumbnail" href="#">
                         <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("HinhAnh","~/images/{0}") %>' />
                        <span>
                            <div>
                                <div style="color: #23CF23; text-align: center; margin: -20px 0 10px 0;">
                                    <asp:Literal ID="Literal1" runat="server" Text='<%# Eval("TenSP") %>'></asp:Literal>
                                    </div>
                                         
                                <asp:Image ID="Image2" runat="server" ImageUrl='<%# Eval("HinhAnh","~/images/{0}") %>' />
                             </div>
                        </span>
                        <div style="clear: both">
                        </div>
                    </a>
                </div>
                <div class="titleproduct">
                    <a href="#" style="text-decoration:none">
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("TenSP") %>'></asp:Label>
                    </a>
                </div>
                <div class="info_price_more">
                    <span class="price">
                        <span class="productPrice">
                            <p>           
                                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("Gia") %>'></asp:Label>           
                            </p>
                        </span>
                    </span>

                    <span class="readmore">
                        <a href="#" style="text-decoration: none">Chi tiết</a>
                    </span>
                </div>
            </div>
        </ItemTemplate>
    </asp:DataList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="getAllSanPham" TypeName="BO.SanPhamController"></asp:ObjectDataSource>

